package com.cqjtu.drive.service;

import com.cqjtu.drive.pojo.Vehicle;
import com.cqjtu.drive.response.Response;

import java.util.List;

public interface VehicleService {

    Response<Vehicle> getVehicleById(String vehicleId);

    Response<String> insertVehicle(Vehicle vehicle);

    Response<String> updateVehicle(Vehicle vehicle);

    Response<String> deleteVehicle(String vehicleId);

    Response<List<Vehicle>> getAllVehicles();
    Response<List<Vehicle>> getVehiclesByname(String vName);
}
